package com.hxd.otc.widget;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.RelativeLayout;

/**
 * Created by lzy on 2018/7/30 0030.
 * description ${TODO}
 */
public class CurrencyConverterRelativeLayout extends RelativeLayout {
    public CurrencyConverterRelativeLayout(@NonNull Context context) {
        super(context);
    }

    public CurrencyConverterRelativeLayout(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public CurrencyConverterRelativeLayout(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        if (isSelected()) {
            return super.onInterceptTouchEvent(ev);
        } else {
            return true;
        }
    }
}